<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	String contentPath = request.getContextPath();
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户</title>
<link rel="stylesheet" href="../../easyui/themes/default/easyui.css"
	type="text/css" media="screen" />
<link rel="stylesheet" href="../../easyui/themes/icon.css"
	type="text/css" media="screen" />
<link rel="stylesheet" href="../../css/main.css" type="text/css"
	media="screen" />
<link rel="stylesheet" type="text/css" href="../../css/Tooltip.css" />
<link rel="stylesheet" type="text/css" href="css/userManager.css" />
<script src="../../easyui/jquery-1.4.4.min.js"></script>
<script src="../../easyui/jquery.easyui.min.js"></script>
<!-- mytab -->
<script src="../../myjs/myTab.js"></script>
<!-- sys -->
<script src="../../myjs/sys.js"></script>
<script src="../../myjs/DatePicker/WdatePicker.js"></script>
<script src="../../myjs/hr/labourManager.js"></script>
<script src="../../easyui/easyMask.js"></script>
<script src="../../easyui/easyUI.js"></script>
<script src="../../easyui/easyLayer.js"></script>
</head>
<body>
<script>
var greyLayer ;
var proName = '<%=contentPath%>';
$(function(){
	grid = $('#tt').datagrid({
		url:proName+'/labour/getLabours',
		pagination:true,
		singleSelect:true,
		fit:true,//表格自动填充
		loadMsg:'正在努力为您加载，请稍作等待…',//加载信息
		toolbar:[{
			text:'新增',
			iconCls:'icon-add',
			handler:'newLabour'
		},'-',{
			text:'修改',
			iconCls:'icon-edit',
			handler:'editLabour'
			
		},'-',{
			text:'删除',
			iconCls:'icon-remove',
			handler:'delLabour'
		}]
	});
	//初始化pagination工具开始
	var pagetool = $('#tt').datagrid('getPager');
	pagetool.pagination({				
			beforePageText:'第',
			afterPageText:'页，共{pages}页',
			displayMsg:'显示从 {from} 到  {to} , 总记录 {total} '});
	//初始化pagination工具结束
	$('body').layout();
	$('#btn-save,#btn-cancel').linkbutton();
	win = $('#user-window').window({
		collapsible:false,
		minimizable:false, 
		maximizable:true, 
		closable:true,
		onClose:function(){greyLayer.close();},
		closed:true
	});
	form = win.find('form');
	greyLayer = new easyMask(null,'100%','100%',100,'#000',8,true);
});
</script>
<div region="center" fit="true" style="padding: 5px;">
<table id="tt">
	<thead>
		<tr>
			<th field="user_name" width="100%">姓名</th>
			<th field="user_jh" width="100%">警号</th>
			<th field="priv_name" width="150%">职位</th>
			<th field="company_name" width="100%">所属单位</th>
			<th field="user_sfzh" width="100%">身份证号</th>
			<th field="user_phone" width="100%">电话</th>
			<th field="user_lrr" width="100%">录入人</th>
			<th field="user_lrr_company" width="100%">录入单位</th>
			<th field="user_time" width="100%">录入时间</th>
			<th field="user_bs" width="100%">有效标示</th>

		</tr>
	</thead>
</table>
</div>
<div id="user-window" title="用户信息" style="width:800px;height:500px;">
<div id="page">
<div class="clear"></div>
<div class="blue_box">
<div class="blue_box_title">
<h2><img src="images/blue_box_title.gif" title="新用户注册" alt="新用户注册" /></h2>
<p>为了保证信息的高可用性，请认真填写员工的资料！</p>
</div>
<div class="content">
<form method="post">
<table>
	<tr>
		<td>
		<div><b>姓名：</b> <input type="text" size="32" name="user_name"
			id="user_name" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>密码：</b> <input type="password" size="32" name="user_password"
			id="user_password" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>警号：</b> <input type="text" size="32" name="user_jh"
			id="user_jh" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>身份证号：</b> <input type="text" size="32" name="user_sfzh"
			id="user_sfzh" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>电话号：</b> <input type="text" size="32" name="user_phone"
			id="user_phone" value="" maxlength="30" class="easyui-validatebox"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div>
		    <b>职位：</b> 
		    <input type="text" size="32" name="user_zw" id="user_zw" panelWidth="180px" valueField="id" textField="priv_name">
		</div>
		<div><b>是否启用：</b> <input class="easyui-combobox" name="user_bs"
			url="disabled.json" valueField="id" textField="text" multiple="false"
			panelHeight="auto" required="true"></input>
		</div>
		</td>
	</tr>
</table>
</form>
</div>
<div class="blue_box_down"></div>
</div>
<div class="clear"></div>
</div>
<div style="text-align: center; padding: 5px;"><a
	href="javascript:void(0)" onclick="saveLabour()" id="btn-save"
	icon="icon-save">确定</a> <a href="javascript:void(0)"
	onclick="closeWindow()" id="btn-cancel" icon="icon-cancel">取消</a></div>
</div>


<!-- 
<div id="page">
<div class="clear"></div>
<div class="blue_box">
<div class="blue_box_title">
<h2><img src="images/blue_box_title.gif" title="新用户注册" alt="新用户注册" /></h2>
<p>为了保证信息的高可用性，请认真填写员工的资料！</p>
</div>
<div class="content">
<form name="regform" id="regform" method="post">
<table>
	<tr>
		<td>
		<div><b>员工姓名：</b> <input type="text" size="32" name="real_name"
			id="real_name" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>性别：</b> <input class="easyui-combobox" name="sex"
			url="sex.json" valueField="id" textField="text" multiple="false"
			panelHeight="auto" required="false"></input></div>
		<div><b>生日：</b> <input type="text" class="Wdate" size="32"
			name="birthday" id="birthday" value="" maxlength="10"
			onClick=WdatePicker();></div>
		<div><b>联系方式：</b> <input type="text" size="32" name="mobil_no"
			id="mobil_no" value="" maxlength="20" class="easyui-validatebox"
			required="true"
			style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
		</div>
		<div><b>Email：</b> <input type="text" size="32" name="email"
	id="email" value="" maxlength="100" class="easyui-validatebox"
	required="true" validType="email"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
		</td>
		<td>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		<td>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		<td>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		<td>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		<td>
		<div
			style="text-align: center; border: 1px solid #ccc;  width: 150px; background: #fafafa; padding-top: 10px;">
		<img name="photo" id="photo" width="100px" height="100px" src="images/msn.gif" ondblclick=""></img>
			<p style="color:#3D6A93; font-size:13px;">双击上传新照片！</p>
		</div>
		</td>
	</tr>
</table>
<div><b>QQ：</b> <input type="text" size="32" name="qq_no"
	id="qq_no" value="" maxlength="20" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>MSN：</b> <input type="text" size="32" name="msn_no"
	id="msn_no" value="" maxlength="50" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>学历：</b> <input class="easyui-combobox" name="diploma"
	url="/pxglxt/dic_educationbackground/getDicsForComb"
	valueField="dickey" textField="dicvalue" multiple="false"
	panelHeight="auto" required="true"></input></div>
<div><b>专业：</b> <input type="text" size="32" name="major"
	id="major" value="" maxlength="100" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>毕业(就读)学校：</b> <input type="text" size="32"
	name="finishschool" id="finishschool" value="" maxlength="100"
	class="easyui-validatebox" required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>简历：</b> <textarea name="resume" id="resume"
	class="easyui-validatebox" required="false"
	style="height: 100px; width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;"></textarea>
</div>
<div><b>家庭电话：</b> <input type="text" size="32" name="tel_no_home"
	id="tel_no_home" value="" maxlength="20" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>家庭住址：</b> <input type="text" size="32" name="home_add"
	id="home_add" value="" maxlength="100" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>邮编：</b> <input type="text" size="32" name="post_no_home"
	id="post_no_home" value="" maxlength="20" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>任聘日期：</b> <input type="text" class="Wdate" size="32"
	name="come_date" id="come_date" value="" maxlength="10"
	onClick=WdatePicker();></div>
<div><b>离职日期：</b> <input type="text" class="Wdate" size="32"
	name="out_date" id="out_date" value="" maxlength="10"
	onClick=WdatePicker();></div>
<div><b>IC卡号：</b> <input type="text" size="32" name="ic_no"
	id="ic_no" value="" maxlength="100" class="easyui-validatebox"
	required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>试用期：</b> <input class="easyui-combobox"
	name="is_probation" url="/pxglxt/dic_labourtype/getDicsForComb"
	valueField="dickey" textField="dicvalue" multiple="false"
	panelHeight="auto" required="true"></input></div>
<div><b>部门：</b> <input class="easyui-combobox" name=""
	dept_id""
		url="/pxglxt/department/getDepartmentsForComb"
	valueField="dept_no" textField="dept_name" multiple="false"
	panelHeight="auto" required="false"></input></div>
<div><b>部门个人电话：</b> <input type="text" size="32"
	name="tel_no_dept" id="tel_no_dept" value="" maxlength="20"
	class="easyui-validatebox" required="false"
	style="width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;">
</div>
<div><b>备注：</b> <textarea name="remark" id="remark"
	class="easyui-validatebox" required="false"
	style="height: 100px; width: 198px; padding: 3px 5px; border: solid 1px #B8BFE9;"></textarea>
</div>
<div><b>是否启用：</b> <input class="easyui-combobox" name="disabled"
	url="disabled.json" valueField="id" textField="text" multiple="false"
	panelHeight="auto" required="true"></input></div>
<div class="btn"><input type="submit" id="UpdButton1"
	name="UpdButton1" value="确 定" onclick="newLabour();"/></div>
</form>
</div>
<div class="blue_box_down"></div>
</div>
<div class="clear"></div>
</div>
-->
</body>
</html>
